<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"import="base.*,pojo.*,service.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="jquery/jscal2.css" />
   <link rel="stylesheet" type="text/css" href="jquery/border-radius.css" />
    <link rel="stylesheet" type="text/css" href="jquery/steel/steel.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">

#box{
	border: 10px groove #CDC9C9;
	height: 450px;
	width: 500px;
	margin-left:auto;
	margin-right:auto;
}
#b1{
	height: 50px;
	width: 510px;
	margin-top: 35px;
}

#s{
   height:40px;
   width:490px;
   margin-bottom:5px;
   }
  body{
	margin:0;
	padding:20px;
	background-image:url("images/innerBJ.jpg");
	background-repeat:no-repeat;
	font:80% Arial, Helvetica, sans-serif;
	color:#555;
	line-height:100%;
}  
</style>
<script type="text/javascript" src="jquery/jquery-1.6.1.js"></script>
<script type="text/javascript" src="jquery/jquery.validate.min.js"></script>
<script type="text/javascript"></script>
<script src="jquery/jscal2.js"></script>
    <script src="jquery/cn.js"></script>
</head>
 <body >
    
<%
request.setCharacterEncoding("UTF-8");
MemberService m=new MemberService();
int id = Integer.valueOf(request.getParameter("id"));
//int type=Integer.parseInt(request.getParameter("type"));
MemberInfor userinfo=m.getMemberByid(id);
MemberLogin user=m.getInfo(id); 
%>

	
		<div id="box" >
		  
			 <form id="contacts-form" method="post" action="action/MemberInforupdate.jsp">
								<input type="hidden" name="id" value="<%=user.getId() %>">
									
									
									<div class="field" id="s"><label>性&nbsp;&nbsp;&nbsp;别:</label>
									<% if (userinfo.getSex()==1) out.println("<input type=radio name=sex value=1 checked=checked/> 男<input type=radio name=sex value=0 />女");%>
									<% if (userinfo.getSex()==0) out.println("<input type=radio name=sex value=1 /> 男<input type=radio name=sex value=0 checked=checked/>女");%>
									</div>
									<input type="hidden" name="type" value="<%=request.getParameter("type") %>"/>
								    <div class="field" id="s"><label>真实姓名</label><input name="realname" value="<%=userinfo.getRealname() %>"></div>
									<div class="field" id="s"><label>身份证号</label><input name="IDcard" value="<%=userinfo.getIDcard() %>"></div>
									<div class="field" id="s"><label>电话号码</label><input name="tel" value="<%=userinfo.getTel() %>"></div>
									<div class="field" id="s"><label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;邮箱</label><input name="email" value="<%=userinfo.getEmail() %>"></div>
									<div class="field" id="s"><label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;生日</label><input name="birthday"  value="<%=userinfo.getBirthday() %>" id="date"/>
									                                                           <script type="text/javascript">
                                                                                                   Calendar.setup({
                                                                                                   inputField : "date",
                                                                                                   trigger    : "date",
                                                                                                   onSelect   : function() { this.hide() },
                                                                                                   dateFormat : "%Y-%m-%d"
                                                                                                   });
                                                                                                  </script>
                                                                                                  </div>
									<div class="field" id="s"><label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;职业:</label><input name="job" value="<%=userinfo.getJob() %>"></div>
									<div class="field" id="s"><label>权&nbsp;&nbsp;&nbsp;限:</label>
									<%if (userinfo.getPermit()==0) out.println("<input type=radio name=permit value=0 checked=checked/> 正常<input type=radio name=permit value=1 />禁用");%>
									<%if (userinfo.getPermit()==1) out.println("<input type=radio name=permit value=0 /> 正常<input type=radio name=permit value=1 checked=checked/>禁用");%>
									</div>
									<div class="alignright"><input id="ok" type="submit" value="保存">&nbsp;&nbsp;&nbsp;<input  type="reset" value="重置"></div>
									
								
								</form>
			  <br />
			
			
			  
			</div>
		
		
		
		
    
	</center>
</body>
</html>
